package com.fengzhilian.timewheel.task;
/**
 * 时间轮执行任务基类
 * @author 郭智峰
 * @Date 2019年12月25日
 */
public abstract class TimedTask {

    protected   long expireTimestamp;
    protected String cronExpression;

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public long getExpireTimestamp() {
        return expireTimestamp;
    }

    public void setExpireTimestamp(long expireTimestamp) {
        this.expireTimestamp = expireTimestamp;
    }

    public abstract void excute(String key);
}
